// pages/home/home.js
Page({

    data: {
        latitude: 40.005631,
        longitude: 116.347481,
        scale: 18,
        enablesatellite: false,
        markers: [{
            id: 0,
            latitude: 40.005631,
            longitude: 116.347481,
            iconPath: '../../asset/p1.png',
            width: '20',
            height: '20'
        }, {
            id: 1,
            latitude: 40.005631,
            longitude: 116.347681,
            iconPath: '../../asset/p2.png',
            width: '20',
            height: '20'
        },
        {
            id: 2,
            latitude: 40.005731,
            longitude: 116.347481,
            iconPath: '../../asset/p4.png',
            width: '20',
            height: '20'
        }, {
            id: 3,
            latitude: 40.005931,
            longitude: 116.347681,
            iconPath: '../../asset/p3.png',
            width: '20',
            height: '20'
        }]
    },

    markertap(e) {
        var id = e.markerId
        console.log(e)
        // var name = this.data.markers[id - 1].name
        // console.log(name)
        // this.setData({
        //   lingyuanName: name,
        //   showDialog: true,
        // })
    },


    onLoad(options) {

    },


    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh() {

    },

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom() {

    },

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage() {

    }
})